<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>{% block title %}PowerSeller{% endblock %}</title>
        {% block stylesheets %}            
            <link rel="stylesheet" href="{{ asset('designs/bootstrap.min.css') }}" />
			<link rel="stylesheet" href="{{ asset('designs/base.design.css') }}" />
        {% endblock %}
        <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
		{% block javascript %}{% endblock %}
    </head>
    <body>
	<div id="container">
        <div id="header">
			<div id="ban"></div>
			<div id="header_command">
				{% if is_granted('ROLE_ADMIN') %}
					<form action="{{ path('_welcomeadmin') }}" method="post" >
						<input type="submit" value="Administration"
					</form>
				{% endif %}
				{% if app.user is null %}
					<form action="{{ path('fos_user_security_login') }}" method="post" >
						<input type="submit" value="Connexion"/>
					</form>
				{% else %}
					<form action="{{ path('fos_user_security_logout') }}" method="post">
						<input type="submit" value="Déconnexion"/>
					</form>
					<a href="{{ path('KGK_commande_panier') }}"><div id="button_panier"></div></a>
				{% endif %}	
			</div>
			<div id="border_header"></div>
		</div>
		<div id="center">
				<div class="hu_base hu_dark hu_left">
					<h3>Categories</h3>
					<a href="{{ path('KGK_accueil') }}">Toutes</a>
					{% for cat in getCategories() %}
						<br><a href="{{ path('KGK_accueil_categorie', { 'cat': cat.catId }) }}">{{ cat.catLibelle }}</a>	
					{% endfor %}
				</div>
				<div class="hu_base hu_center">
					{% block body %}{% endblock %}
				</div>
		</div>
		<div id="footer">
			<div id="border_footer"></div>
			<p id="text_footer">&copy; KGK Inc. (Kaestlé-Gouy-Koeck) {{ '' | date('Y') }}</p>
		</div>
		
	</div>
    </body>
</html>
